package dao;

import prjo.dishMeg;

import java.sql.Connection;
import java.util.List;

/**
 * @author shkstart
 * @creat 16:35 2022/6/3
 */

public interface orderDao {

    public int addOrder(Connection conn, String name, dishMeg dishMeg, int time, String address, int status);

    public List showOrder(Connection conn);

    /**
     * 修改订单的状态（update)
     *
     * @return
     */
    public int getOrder(Connection conn, int id);

    public int deleterOrder(Connection conn, int id);

    /**
     * 获取一个订单信息
     *
     * @param conn
     * @param id
     * @return
     */
    public <T> T OneOrder(Connection conn, int id);
}
